import { axios } from '@/utils/request'
export function getTablePage(parameter) {
  return axios({
    url: '/sys/hr/enterprise/staff/pageQueryStaff',
    method: 'post',
    data:parameter
  })
}
export function getStaffExport(parameter) {
  return axios({
    url: '/sys/hr/enterprise/staff/exportEnterpriseStaff',
    method: 'post',
    data:parameter,
    responseType: 'blob'
  })
}
export function addStaff(parameter) {
  return axios({
    url: '/sys/hr/admin/staff/add',
    method: 'post',
    data:parameter
  })
}
export function getStaffGroupPage(parameter) {
  return axios({
    url: '/sys/hr/enterprise/group/pageQueryEnterpriseGroup',
    method: 'post',
    data:parameter
  })
}
export function getStaffGroup(parameter) {
  return axios({
    url: '/sys/hr/enterprise/group/listEnterpriseGroup',
    method: 'get',
    params:parameter
  })
}
export function addGroup(parameter) {
  return axios({
    url: '/sys/hr/enterprise/group/add',
    method: 'post',
    data:parameter
  })
}
export function editGroup(parameter) {
  return axios({
    url: '/sys/hr/enterprise/group/update',
    method: 'post',
    data:parameter
  })
}
export function delGroup(parameter) {
  return axios({
    url: '/sys/hr/enterprise/staff/removeGroup',
    method: 'post',
    data:parameter
  })
}
export function addStaffToGroup(parameter) {
  return axios({
    url: '/sys/hr/enterprise/staff/addStaffToGroup',
    method: 'post',
    data:parameter
  })
}
export function removeStaffFromGroup(parameter) {
  return axios({
    url: '/sys/hr/enterprise/staff/removeFromGroup',
    method: 'post',
    data:parameter
  })
}
export function batchDimission(parameter) {
  return axios({
    url: '/sys/hr/enterprise/staff/batchDimission',
    method: 'post',
    data:parameter
  })
}
export function listEnterpriseStaffLeaveType() {
  return axios({
    url: '/sys/hr/enterprise/staff/listEnterpriseStaffLeaveType',
    method: 'get'
  })
}
export function getStaffTransfer(parameter) {
  return axios({
    url: '/sys/hr/enterprise/staff/staffTransfer',
    method: 'post',
    data: parameter
  })
}
export function enterpriseStaffFileAdd(parameter) {
  return axios({
    url: '/sys/hr/enterpriseStaffFile/add',
    method: 'post',
    data: parameter
  })
}
export function checkFileName(parameter) {
  return axios({
    url: '/sys/hr/enterpriseStaffFile/checkFileName',
    method: 'post',
    data: parameter
  })
}